home *** CD-ROM | disk | FTP | other *** search
- on checksaveronoff n
- clearchecksaver()
- if n = 1 then
- set the hilite of cast "SaverOn" to 1
- else
- if n = 0 then
- set the hilite of cast "SaverOff" to 1
- end if
- end if
- end
-
- on clearchecksaver
- set the hilite of cast "SaverOn" to 0
- set the hilite of cast "SaverOff" to 0
- end
-
- on checksavertime n
- clearchecksavertime()
- if n = 2 then
- set the hilite of cast "Saver2min" to 1
- else
- if n = 3 then
- set the hilite of cast "Saver3min" to 1
- else
- if n = 5 then
- set the hilite of cast "Saver5min" to 1
- end if
- end if
- end if
- end
-
- on clearchecksavertime
- set the hilite of cast "Saver2min" to 0
- set the hilite of cast "Saver3min" to 0
- set the hilite of cast "Saver5min" to 0
- end
-
- on cancelsaver
- global saveronoff, savertime
- clearchecksaver()
- if saveronoff then
- set the hilite of cast "SaverOn" to 1
- else
- set the hilite of cast "SaverOff" to 1
- end if
- clearchecksavertime()
- if savertime = 2 then
- set the hilite of cast "Saver2min" to 1
- else
- if savertime = 3 then
- set the hilite of cast "Saver3min" to 1
- else
- if savertime = 5 then
- set the hilite of cast "Saver5min" to 1
- end if
- end if
- end if
- end
-
- on setsaver
- global saveronoff, savertime, fileName
- if the hilite of cast "SaverOn" = 1 then
- set the timeoutScript to "doTimeOut"
- set saveronoff to 1
- end if
- if the hilite of cast "SaverOff" = 1 then
- set the timeoutScript to EMPTY
- set saveronoff to 0
- end if
- if the hilite of cast "Saver2min" = 1 then
- set savertime to 2
- end if
- if the hilite of cast "Saver3min" = 1 then
- set savertime to 3
- end if
- if the hilite of cast "Saver5min" = 1 then
- set savertime to 5
- end if
- set the timeoutLength to savertime * 60 * 60
- end
-